{% extends "publications/base1.html" %}
{% block headerTitle %}{{department}}{% endblock headerTitle%} 

{% block head %}
{% load staticfiles %}	
<script type="text/javascript" language="javascript" src="{% static 'publications/js/jquery-1.10.1.min.js' %}"></script>
<script type="text/javascript" language="javascript" src="{% static 'publications/datatables/js/jquery.dataTables.min.js' %}"></script>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
<link href="{% static 'publications/datatables/css/prueba.css' %}" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(document).ready(function() {
	    $('#autores').dataTable({
	    	//'bAutoWidth': false,
	    	"sPaginationType": "full_numbers",
	    	"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "TODO"]],
	    	"aaSorting": [[ 3, "desc" ]],
	    	"oLanguage": {
				"sLengthMenu": "Mostrando _MENU_ por pagina",
				"sZeroRecords": "No exiten autores con el criterio de busqueda.",
				"sInfo": "Mostrando _START_ a _END_ de _TOTAL_ autores",
				"sInfoEmpty": "Mostrando 0 a 0 de 0 autores",
				"sInfoFiltered": "(filtrados de un total de _MAX_ autores)",
				"sSearch": "Buscar:",
				"oPaginate": {
			        "sNext": "Siguiente",
			        "sLast": "Última",
			        "sPrevious": "Anterior",
			        "sFirst": "Primera"
			      }
			},
			"iDisplayLength": -1,
	    });
	} );
	
	function goBack() {
		window.history.back()
	}
</script>
{% endblock head%}

{% block content %}
<!-- <ul> -->
<table id="autores" border="0" cellpadding="0" cellspacing="0" class="pretty"">
    <thead>
    	<tr>
    		<th rowspan="2">Nombre del Author</th>
    		<th colspan="3">Publicaciones ISI WOK</th>
    		<th colspan="3">Publicaciones Scopus</th>
    		<th colspan="3">Publicaciones Google Scholar</th>
    	</tr>
    	<tr>
    		<th>N° Pub</th><th>N° Citas</th><th>h-Index</th>
    		<th>N° Pub</th><th>N° Citas</th><th>h-Index</th>
    		<th>N° Pub</th><th>N° Citas</th><th>h-Index</th>
    	</tr>
    </thead>
    <tbody>
	{% for author in all_authors %}
	<tr>
		
		<th><a href="{% url 'publications.views.authorDetails' author.id %}">{{author.surname}}, {{ author.name }} {{author.middle_name}} </a></th>
		<td class="wok">{{author.wok_pub_count}}</td>
		<td class="wok">{{author.wok_cit_count}}</td>
		<td class="wok">{{author.wok_hindex}}</td>
		<td class="scopus">{{author.scopus_pub_count}}</td>
		<td class="scopus">{{author.scopus_cit_count}}</td>
		<td class="scopus">{{author.scopus_hindex}}</td>
		<td class="gscholar">{{author.gscholar_pub_count}}</td>
		<td class="gscholar">{{author.gscholar_cit_count}}</td>
		<td class="gscholar">{{author.gscholar_hindex}}</td>
	</tr>
	{% endfor %}
	</tbody>
</table>
<!-- </ul> -->
{% endblock content %}
